package com.jintian.smart.kernel.job.domain.form;

import com.jintian.smart.kernel.job.domain.vo.SmartJobLogVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.beetl.sql.core.page.DefaultPageRequest;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDate;

/**
 * 定时任务-执行记录 分页查询
 */
@Data
public class SmartJobLogQueryForm extends DefaultPageRequest<SmartJobLogVO> {
    @Schema(description = "搜索词|可选")
    @Length(max = 50, message = "搜索词最多50字符")
    private String searchWord;

    @Schema(description = "任务id|可选")
    private Integer jobId;

    @Schema(description = "是否成功|可选")
    private Integer successFlag;

    @Schema(description = "开始时间|可选", example = "2024-06-06")
    private LocalDate startTime;

    @Schema(description = "截止时间|可选", example = "2025-10-15")
    private LocalDate endTime;
}
